package com.xyrl.project.common.common.service.impl;

import com.xyrl.project.common.common.service.AppService;
import com.xyrl.project.common.common.vo.AppConfigVo;
import com.xyrl.third.aliyun.util.OssUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class AppServiceImpl implements AppService {
    @Value("${aliyun.oss.bucketName}")
    private String bucketName;
    @Override
    public AppConfigVo getAppConfig() {
        AppConfigVo appConfigVo = new AppConfigVo();
        appConfigVo.setImageDomain(OssUtil.showUrl(bucketName, "/"));
        return appConfigVo;
    }
}
